package com.note.bean;

import java.util.Date;

import com.note.view.MainWindow;

public class Note {
	public final static String spitChar = "ABCfe767dfbe42519ea5019c63384CBA";
	private Integer id;
	private Date date;
	private String stringdate;
	private String feel;
	private String body;
	private String work;
	private String Xinde;
	private String daiban;
	private String zhichujine;
	private String zhichumiaoshu;

	public Note() {

	}

	public Note(MainWindow mw) {

	}

	public String getFeel() {
		return feel;
	}

	public void setFeel(String feel) {
		this.feel = feel;
	}

	public String getBody() {
		return body;
	}

	public void setBody(String body) {
		this.body = body;
	}

	public String getWork() {
		return work;
	}

	public void setWork(String work) {
		this.work = work;
	}

	public String getXinde() {
		return Xinde;
	}

	public void setXinde(String xinde) {
		Xinde = xinde;
	}

	public String getZhichujine() {
		return zhichujine;
	}

	public void setZhichujine(String zhichujine) {
		if (zhichujine == null || "".equals(zhichujine.trim())) {
			this.zhichujine = "0";
		} else {
			zhichujine=zhichujine.trim();
			try {
				Double itg=Double.valueOf(zhichujine);
			} catch (NumberFormatException e) {
				e.printStackTrace();
				this.zhichujine ="0";
				return;
			}
			this.zhichujine=zhichujine.trim();
		}
	}

	public String getZhichumiaoshu() {
		return zhichumiaoshu;
	}

	public void setZhichumiaoshu(String zhichumiaoshu) {
		this.zhichumiaoshu = zhichumiaoshu;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getStringdate() {
		return stringdate;
	}

	public String getDaiban() {
		return daiban;
	}

	public void setDaiban(String daiban) {
		this.daiban = daiban;
	}

	public void setStringdate(String stringdate) {
		this.stringdate = stringdate;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return stringdate + spitChar + feel + spitChar + body + spitChar + work
				+ spitChar + Xinde + spitChar + zhichujine + spitChar
				+ zhichumiaoshu+"\n";
	}

}
